//
//  CustomComponent.swift
//  IOS_Mock_WB
//
//  Created by edy on 2024/9/20.
//

import Foundation
import UIKit


//
extension UIButton {
    static func CustomComponent_TextButton(_ title: String, fontSize: CGFloat, normalColor: UIColor, highlightedColor: UIColor) -> UIButton {
        let button = UIButton(type: .custom)
        button.setTitle(title, for: .normal)
        button.setTitleColor(normalColor, for: .normal)
        button.setTitleColor(highlightedColor, for: .highlighted)
        button.titleLabel?.font = UIFont.systemFont(ofSize: fontSize)
        return button
    }
}
